﻿using System;
using Telerik.Web.UI;

namespace Medianamik.UI.Controls
{
    public class BaseModalWindow : RadWindow
    {
        public override bool EnableEmbeddedSkins
        {
            get
            {
                return false;
            }
            set
            {
                throw new InvalidOperationException("Cannot set EnableEmbeddedSkins for this control.");
            }
        }

        public override string SkinID
        {
            get
            {
                if (string.IsNullOrEmpty(base.SkinID))
                    return "Medianamik";

                return base.SkinID;
            }
            set
            {
                base.SkinID = value;
            }
        }

        public override bool EnableTheming
        {
            get
            {
                return false;
            }
            set
            {
                throw new InvalidOperationException("Cannot set EnableTheming for this control.");
            }
        }

        public new bool Modal
        {
            get
            {
                return true;
            }
            set
            {
                throw new InvalidOperationException("Cannot set Modal for this control.");
            }
        }

        public new WindowBehaviors Behaviors
        {
            get
            {
                return WindowBehaviors.Close;
            }
            set
            {
                base.Behaviors = value;
            }
        }

        public new bool VisibleStatusbar
        {
            get
            {
                return false;
            }
            set
            {
                throw new InvalidOperationException("Cannot set VisibleStatusbar for this control.");
            }
        }
    }
}
